------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  C:\Users\jar68\OneDrive\Ongoing Work\Party Cues and Suspicion Paper\Final Datavserse\Online Appendix H\appendix_oh_log.log
  log type:  text
 opened on:  23 Jun 2021, 17:53:53

. set more off

. 
. foreach var in inferences prox {
  2.         summ `var' 
  3.         gen `var'01 = (`var' - r(min))/(r(max)-r(min))
  4. }

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
  inferences |      3,077    3.982224    1.198478          1          7

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
        prox |      3,071    4.372191    1.594329          0          6
(6 missing values generated)

. 
. encode treat_3, gen(tr1)

. encode change_stereotype, gen(tr2)

. encode pid_2, gen(pid_2a)

. 
. 
. /******************
> Table OH1: OLS Model
> *******************/
. 
. eststo clear

. eststo: regress inferences01 i.tr1##i.pid_2a i.tr2

      Source |       SS           df       MS      Number of obs   =     2,460
-------------+----------------------------------   F(6, 2453)      =      6.37
       Model |  1.55259542         6  .258765903   Prob > F        =    0.0000
    Residual |  99.6231713     2,453  .040612789   R-squared       =    0.0153
-------------+----------------------------------   Adj R-squared   =    0.0129
       Total |  101.175767     2,459  .041145086   Root MSE        =    .20153

---------------------------------------------------------------------------------------------------------
                           inferences01 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
----------------------------------------+----------------------------------------------------------------
                                    tr1 |
                             Party Cue  |   .0388027   .0171094     2.27   0.023     .0052524     .072353
           Party Cue w/ Group Pressure  |   .0411966   .0140395     2.93   0.003     .0136661    .0687272
                                        |
                                 pid_2a |
                            Republican  |   .0179695   .0182764     0.98   0.326    -.0178692    .0538083
                                        |
                             tr1#pid_2a |
                  Party Cue#Republican  |   .0033225   .0258466     0.13   0.898     -.047361    .0540059
Party Cue w/ Group Pressure#Republican  |  -.0320782     .02112    -1.52   0.129    -.0734931    .0093367
                                        |
                                    tr2 |
                  Stereotypical Change  |   .0396358   .0081316     4.87   0.000     .0236904    .0555813
                                  _cons |    .457535   .0127821    35.79   0.000     .4324702    .4825999
---------------------------------------------------------------------------------------------------------
(est1 stored)

. eststo: regress prox01 i.tr1##i.pid_2a i.tr2

      Source |       SS           df       MS      Number of obs   =     2,455
-------------+----------------------------------   F(6, 2448)      =     16.71
       Model |  6.86937649         6  1.14489608   Prob > F        =    0.0000
    Residual |  167.725323     2,448  .068515246   R-squared       =    0.0393
-------------+----------------------------------   Adj R-squared   =    0.0370
       Total |  174.594699     2,454  .071146984   Root MSE        =    .26175

---------------------------------------------------------------------------------------------------------
                                 prox01 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
----------------------------------------+----------------------------------------------------------------
                                    tr1 |
                             Party Cue  |   .0838102   .0222227     3.77   0.000     .0402331    .1273874
           Party Cue w/ Group Pressure  |   .0628227   .0182409     3.44   0.001     .0270535     .098592
                                        |
                                 pid_2a |
                            Republican  |  -.0230137   .0237385    -0.97   0.332    -.0695633    .0235358
                                        |
                             tr1#pid_2a |
                  Party Cue#Republican  |  -.0352749   .0335711    -1.05   0.293    -.1011056    .0305559
Party Cue w/ Group Pressure#Republican  |  -.0705295   .0274444    -2.57   0.010    -.1243462   -.0167128
                                        |
                                    tr2 |
                  Stereotypical Change  |   .0570987   .0105723     5.40   0.000      .036367    .0778303
                                  _cons |   .6618744   .0166038    39.86   0.000     .6293154    .6944333
---------------------------------------------------------------------------------------------------------
(est2 stored)

. 
. esttab using "table_oh1.rtf", replace ///
> onecell label nobaselevels b(2) se star(* 0.05 ** 0.01 *** 0.001) ///
>         mtitles("Inferences" "Proximity") ///
>         title("{\b Table OH1:} PID Interaction MOdels, Proximity and Inferences, Experiment 3") 
(note: file table_oh1.rtf not found)
(output written to table_oh1.rtf)

.         
.         
. /******************
> Table OH2: Marginal Effects
> Note: The differences portion of the table was added manuallly (see lincom results) and some
> rearranging was also done
> *******************/
. regress inferences01 i.tr1##i.pid_2a i.tr2

      Source |       SS           df       MS      Number of obs   =     2,460
-------------+----------------------------------   F(6, 2453)      =      6.37
       Model |  1.55259542         6  .258765903   Prob > F        =    0.0000
    Residual |  99.6231713     2,453  .040612789   R-squared       =    0.0153
-------------+----------------------------------   Adj R-squared   =    0.0129
       Total |  101.175767     2,459  .041145086   Root MSE        =    .20153

---------------------------------------------------------------------------------------------------------
                           inferences01 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
----------------------------------------+----------------------------------------------------------------
                                    tr1 |
                             Party Cue  |   .0388027   .0171094     2.27   0.023     .0052524     .072353
           Party Cue w/ Group Pressure  |   .0411966   .0140395     2.93   0.003     .0136661    .0687272
                                        |
                                 pid_2a |
                            Republican  |   .0179695   .0182764     0.98   0.326    -.0178692    .0538083
                                        |
                             tr1#pid_2a |
                  Party Cue#Republican  |   .0033225   .0258466     0.13   0.898     -.047361    .0540059
Party Cue w/ Group Pressure#Republican  |  -.0320782     .02112    -1.52   0.129    -.0734931    .0093367
                                        |
                                    tr2 |
                  Stereotypical Change  |   .0396358   .0081316     4.87   0.000     .0236904    .0555813
                                  _cons |    .457535   .0127821    35.79   0.000     .4324702    .4825999
---------------------------------------------------------------------------------------------------------

.         margins, dydx(tr1) by(pid_2a) post coeflegend

Average marginal effects                        Number of obs     =      2,460
Model VCE    : OLS

Expression   : Linear prediction, predict()
dy/dx w.r.t. : 2.tr1 3.tr1
over         : pid_2a

------------------------------------------------------------------------------
             |      dy/dx  Legend
-------------+----------------------------------------------------------------
1.tr1        |  (base outcome)
-------------+----------------------------------------------------------------
2.tr1        |
      pid_2a |
   Democrat  |   .0388027  _b[2.tr1:1bn.pid_2a]
 Republican  |   .0421251  _b[2.tr1:2.pid_2a]
-------------+----------------------------------------------------------------
3.tr1        |
      pid_2a |
   Democrat  |   .0411966  _b[3.tr1:1bn.pid_2a]
 Republican  |   .0091185  _b[3.tr1:2.pid_2a]
------------------------------------------------------------------------------
Note: dy/dx for factor levels is the discrete change from the base level.

.         estimates store m1

.         *Democrats
.         lincom  _b[2.tr1:1bn.pid_2a] - _b[3.tr1:1bn.pid_2a]

 ( 1)  [2.tr1]1bn.pid_2a - [3.tr1]1bn.pid_2a = 0

------------------------------------------------------------------------------
             |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         (1) |   -.002394   .0139457    -0.17   0.864    -.0297406    .0249527
------------------------------------------------------------------------------

.         *Republicans 
.         lincom _b[2.tr1:2.pid_2a] -  _b[3.tr1:2.pid_2a]

 ( 1)  [2.tr1]2.pid_2a - [3.tr1]2.pid_2a = 0

------------------------------------------------------------------------------
             |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         (1) |   .0330067   .0158552     2.08   0.037     .0019157    .0640976
------------------------------------------------------------------------------

.         
. regress prox01 i.tr1##i.pid_2a i.tr2

      Source |       SS           df       MS      Number of obs   =     2,455
-------------+----------------------------------   F(6, 2448)      =     16.71
       Model |  6.86937649         6  1.14489608   Prob > F        =    0.0000
    Residual |  167.725323     2,448  .068515246   R-squared       =    0.0393
-------------+----------------------------------   Adj R-squared   =    0.0370
       Total |  174.594699     2,454  .071146984   Root MSE        =    .26175

---------------------------------------------------------------------------------------------------------
                                 prox01 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
----------------------------------------+----------------------------------------------------------------
                                    tr1 |
                             Party Cue  |   .0838102   .0222227     3.77   0.000     .0402331    .1273874
           Party Cue w/ Group Pressure  |   .0628227   .0182409     3.44   0.001     .0270535     .098592
                                        |
                                 pid_2a |
                            Republican  |  -.0230137   .0237385    -0.97   0.332    -.0695633    .0235358
                                        |
                             tr1#pid_2a |
                  Party Cue#Republican  |  -.0352749   .0335711    -1.05   0.293    -.1011056    .0305559
Party Cue w/ Group Pressure#Republican  |  -.0705295   .0274444    -2.57   0.010    -.1243462   -.0167128
                                        |
                                    tr2 |
                  Stereotypical Change  |   .0570987   .0105723     5.40   0.000      .036367    .0778303
                                  _cons |   .6618744   .0166038    39.86   0.000     .6293154    .6944333
---------------------------------------------------------------------------------------------------------

.         margins, dydx(tr1) by(pid_2a) post coeflegend

Average marginal effects                        Number of obs     =      2,455
Model VCE    : OLS

Expression   : Linear prediction, predict()
dy/dx w.r.t. : 2.tr1 3.tr1
over         : pid_2a

------------------------------------------------------------------------------
             |      dy/dx  Legend
-------------+----------------------------------------------------------------
1.tr1        |  (base outcome)
-------------+----------------------------------------------------------------
2.tr1        |
      pid_2a |
   Democrat  |   .0838102  _b[2.tr1:1bn.pid_2a]
 Republican  |   .0485353  _b[2.tr1:2.pid_2a]
-------------+----------------------------------------------------------------
3.tr1        |
      pid_2a |
   Democrat  |   .0628227  _b[3.tr1:1bn.pid_2a]
 Republican  |  -.0077068  _b[3.tr1:2.pid_2a]
------------------------------------------------------------------------------
Note: dy/dx for factor levels is the discrete change from the base level.

.         estimates store m2

.         *Democrats
.         lincom  _b[2.tr1:1bn.pid_2a] - _b[3.tr1:1bn.pid_2a]

 ( 1)  [2.tr1]1bn.pid_2a - [3.tr1]1bn.pid_2a = 0

------------------------------------------------------------------------------
             |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         (1) |   .0209875   .0181192     1.16   0.247     -.014543     .056518
------------------------------------------------------------------------------

.         *Republicans 
.         lincom _b[2.tr1:2.pid_2a] -  _b[3.tr1:2.pid_2a]

 ( 1)  [2.tr1]2.pid_2a - [3.tr1]2.pid_2a = 0

------------------------------------------------------------------------------
             |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         (1) |   .0562422   .0206056     2.73   0.006      .015836    .0966483
------------------------------------------------------------------------------

. 
. esttab m1 m2  using "table_oh2_margins.rtf", replace ///
>         onecell label nobaselevels b(2) ci ///
>         mtitles("Inferences" "Prox") ///
>         title("{\b Table OH2:} Marginal Effects From Table OH1")
(note: file table_oh2_margins.rtf not found)
(output written to table_oh2_margins.rtf)

.         
.         
. log close
      name:  <unnamed>
       log:  C:\Users\jar68\OneDrive\Ongoing Work\Party Cues and Suspicion Paper\Final Datavserse\Online Appendix H\appendix_oh_log.log
  log type:  text
 closed on:  23 Jun 2021, 17:53:54
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
